<!doctype html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>跳蚤</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" href="../libs/mui/mui.css" />
		<link rel="stylesheet" href="../libs/iconfont/fonts/iconfont.css"/>
		<link rel="stylesheet" href="../css/pullToRefresh.css" />
		<link rel="stylesheet" type="text/css" href="../css/main.css"/>		
		<style> 
			.mui-content{font-size: 16px;}
			.mui-grid-view{margin-bottom: 5px;}				
			.mui-grid-view b{color: red;display: block;}			
			.mui-table-view .mui-media-object.touxiang{border-radius: 100%; height: 40px !important; max-width:40px !important; line-height: 40px !important;}
			.mui-table-view.mui-grid-view img{width: 85px;height: 85px;border: 1px solid #EEEEEE}
			.mui-table-view-cell p{font-size: 14px;}
			.mui-table-view-cell>a:not(.mui-btn){white-space:normal;}			
			.tie{font-size: 16px;padding-bottom: 10px;}
			.mui-table-view.mui-grid-view .mui-table-view-cell{width: 100%;padding: 11px 15px;margin: 0;padding-bottom: 0px;text-align: left;}
			.mui-table-view.mui-grid-view li:nth-child(3){padding-bottom: 11px;}
			.mui-table-view.mui-grid-view .mui-table-view-cell .mui-media-body{width: 80%;height: 30px;text-align: left;line-height: 30px;}			
		</style>
		<script src="../js/angular.js"></script>
	</head>
	<body ng-app="flea" ng-controller="fleaController">
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">跳蚤市场</h1>
			<a class="mui-pull-right mui-icon release">
				<i class="iconfont">&#xe625;</i>
			</a>
		</header>
		<div class="mui-content">		
			<div class="Flea" id="content">
				<ul class="mui-table-view mui-grid-view" ng-repeat="(k,v) in flealist" ng-click="flea_details(v.goods_id,v.store_id)">
					<li class="mui-table-view-cell Flda">
						<img class="mui-media-object touxiang mui-pull-left" ng-src="{{user_pic}}{{v.member_info.member_avatar}}">
						<div class="mui-media-body">
							<span>{{v.member_info.member_name}}</span>							
							<span class="mui-pull-right mui-h6">{{v.goods_edittime}}</span>								
						</div>
					</li>
					<li class="mui-table-view-cell" ng-if="v.goods_image.length > 0">
						<div class="mui-slider-group Surroundings">					
							<div class="succes-goods-img-body table-view-cell mui-scroll-wrapper mui-slider-indicator mui-segmented-control mui-segmented-control-inverted"style="height: 85px;">
								<div class="mui-route mui-scroll">
									<img ng-repeat="(key,val) in v.goods_image" ng-src="{{pics}}{{v.store_id}}/{{val.goods_image}}"/>								
								</div>
							</div>	
						</div>
					</li>
					<li class="mui-table-view-cell Flda">
						<span>{{v.goods_name}}</span>
						<b>￥{{v.goods_price}}</b>
					</li>
				</ul>
			</div>		
		</div>	
		<script src="../js/mui.js"></script>
		<script src="../js/open.js"></script>
		<script src="../libs/jquery/jquery.js"></script>
		
		<script type="text/javascript" src="../js/web_js/public.js"></script>
		<script type="text/javascript" src="../js/mui.pullToRefresh.js"></script>
		<script type="text/javascript" src="../js/mui.pullToRefresh.material.js"></script>	
		<script type="text/javascript" src="../js/web_js/flea_market.js"></script>
		<script type="text/javascript">
			mui.init();
			(function($) {
				$.ready(function() {
					$.each(document.querySelectorAll('.mui-content'), function(index, pullRefreshEl) {
						$(pullRefreshEl).pullToRefresh({
							down: {
								callback: function() {
									var self = this;
									setTimeout(function() {
//										empty();
										$scope.initView();
										toast('刷新成功！');
//										pullflea_fun(); 
										self.endPullDownToRefresh();
									}, 1000);
								}
							}
						});
					});
				});  
			})(mui);
//			function empty(){ 
//				$('.Flea').html('');
//			}
			
		</script>
		<script type="text/javascript">
//			跳蚤详情
//			$(".Flda").on("tap",function(){
//				openNewPage('Flea_details.html')
//			})	
		</script>
	</body>
</html>